import request from '@/utils/request'

// 查询行情列表
export function listMlkline(query) {
  return request({
    url: '/business/mlkline/list2',
    method: 'get',
    params: query
  })
}

// 查询行情详细
export function getMlkline(id) {
  debugger
  return request({
    url: '/business/mlkline/' + id,
    method: 'get'
  })
}

// 新增行情
export function addMlkline(data) {
  return request({
    url: '/business/mlkline',
    method: 'post',
    data: data
  })
}



// 修改行情
export function updateMlkline(data) {
  return request({
    url: '/business/mlkline',
    method: 'put',
    data: data
  })
}

// 删除行情
export function delMlkline(id) {
  return request({
    url: '/business/mlkline/' + id,
    method: 'delete'
  })
}
